package com.catchu.pattern.creational.构造器模式.cup;

/**
 * 构建杯子的抽象类
 */
public abstract class Builder {

    protected Cup cup = new Cup();
    /**
     * 创建杯绳
     * @return
     */
    protected abstract void line();

    /**
     * 创建杯盖
     * @return
     */
    protected abstract void cap();

    /**
     * 创建杯体
     * @return
     */
    protected abstract void cupBody();

    protected Cup getResult(){
        return cup;
    }
}
